<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    
	
	<title>_${customer.customerName}_拣货明细</title>
	<script type="text/javascript">
	    
	    //导出Excel
	    function exportExcel(){
	       $("#queryForm").attr("action","${ctx}/outstorageInfo_1/expDetail_work");
	    }
	    
	    //返回统计页面
	    function reback(){
	       $("#queryForm").attr("action","${ctx}/outstorageInfo_1/v2_queryOutstorageInfo");
	       $("#queryForm").submit();
	    }
	    
    </script>
</head>

<body>
<section class="content">
<div class="row">
		<div class="col-md-12">

			<!-- Primary box -->
			<div class="box box-solid box-primary">
				<div class="box-header">
					<i class="fa fa-search"></i>
					<h3 class="box-title">操作栏</h3>
					<div class="box-tools pull-right">
						<button class="btn btn-primary btn-sm" data-widget="collapse">
							<i class="fa fa-minus"></i>
						</button>
					</div>
				</div>
				<div class="box-body">
	 <form class="form-search" id="queryForm" method="post" style="margin-top: 10px;">
	    
	   <input type="hidden"  name="_customerCode" value="${_customerCode}"/>
	   <input type="hidden"  name="_warehouseCode" value="${_warehouseCode}"/>
	   <input type="hidden"  name="_fromDate" value="${_fromDate}"/>
	   <input type="hidden"  name="_toDate" value="${_toDate}"/>
	   <input type="hidden"  name="_endDate" value="${_endDate}"/>
	   <input type="hidden"  name="_batchCode" value="${_batchCode}"/>
	   <input type="hidden" name="_taskCode"  value="${_taskCode}" />
	   <input type="hidden" name="_sku" value="${_sku}" /> 
	 
	   <button class="btn btn-info" type="submit" onclick="exportExcel();">导出Excel</button>
       <button class="btn btn-primary" style="margin-left: 10px;" onclick="reback();">返回</button>
     </form>
    </div>
    </div>
    </div>
    </div>
     
	
	<div class="row">
		<div class="col-md-12">

			<!-- Primary box -->
			<div class="box box-solid box-primary">
				<div class="box-header">
					<i class="fa fa-search"></i>
					<h3 class="box-title">拣货明细</h3>
					<div class="box-tools pull-right">
						<button class="btn btn-primary btn-sm" data-widget="collapse">
							<i class="fa fa-minus"></i>
						</button>
					</div>
				</div>
				<div class="box-body">
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead><tr>
		    <th style="width: 100px;">序列</th>
		    <th style="width: 100px;">商家</th>
		    <th style="width: 180px;">仓库</th>
		    <th style="width: 80px;">批次号</th>
			<th style="width: 80px;">任务号</th>
		    <th style="width: 80px;">订单号</th>
		    <th style="width: 80px;">商品信息</th>
			<th style="width: 80px;">拣货信息</th>
		</tr></thead>
		<tbody>
		
		<c:if test="${empty orderList or orderList.size() eq 0}">
	       <tr><td colspan="6" height="50" style="vertical-align:middle; text-align: center;color: gray;font-size: 20px;">无数据</td></tr>
	    </c:if>
		
		<c:if test="${not empty orderList}">
		<c:forEach items="${orderList}" var="o" varStatus="i">
			<tr>
			   <td>${i.count}</td>
			   <td>${o.customerCode}</td>
			   <td>${o.warehouseCode}</td>
			   <td>${o.batchCode}</td>
			   <td>${o.taskCode}</td>
			   <td>${o.order.ordeno}</td>
			   <td>${o.goodsInfo}</td>
			   <td>${o.stockInfo}</td>
			</tr>
		</c:forEach>
		</c:if>
		
		</tbody>
	</table>
	</div>
	</div>
	</div>
	</div>
</section>	
</body>
</html>
